﻿namespace Xc.DataAccess.Protocoals.WaterMeters.Models
{
    /// <summary>
    /// 生产日期
    /// </summary>
    public struct Date
    {
        /// <summary>
        /// 生产日期
        /// </summary>
        /// <param name="array"></param>
        public Date(byte[] array)
        {

            Year = array[1]+2000;
            Month = array[0];
        }
        /// <summary>
        /// 年份
        /// </summary>
        public int Year { get; private set; }
        /// <summary>
        /// 月份
        /// </summary>
        public int Month { get;private set; }
    }
}